package org.dreamwork.cai.jmx.beaninfo;


import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class Frame implements Serializable {
    private String namespace;
    private int port;
    private Map<String, Item> items = Collections.synchronizedMap (new HashMap<> ());

    private String host;
    private int metric = 0;
    private long timestamp = System.currentTimeMillis ();
    private String description;

    public String getNamespace () {
        return namespace;
    }

    public void setNamespace (String namespace) {
        this.namespace = namespace;
    }

    public int getPort () {
        return port;
    }

    public void setPort (int port) {
        this.port = port;
    }

    public Map<String, Item> getItems () {
        return items;
    }

    public void setItems (Map<String, Item> items) {
        this.items = items;
    }

    public String getHost () {
        return host;
    }

    public void setHost (String host) {
        this.host = host;
    }

    public int getMetric () {
        return metric;
    }

    public void setMetric (int metric) {
        this.metric = metric;
    }

    public long getTimestamp () {
        return timestamp;
    }

    public void setTimestamp (long timestamp) {
        this.timestamp = timestamp;
    }

    public String getDescription () {
        return description;
    }

    public void setDescription (String description) {
        this.description = description;
    }
}
